package com.liuhung.base.page;

import java.util.Map;

/**
 * $.ajax后需要接受的JSON
 * 
 * @author liuhung
 * 
 */
public class AjaxJson {
	private boolean status = true;// 是否成功
	private int code = 200;
	private String msg = "操作成功";// 提示信息
	private Object obj = null;// 其他信息
	private Map<String, Object> attributes;// 其他参数
	
	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	/*************************************
	 * @return the status
	 *************************************/
	public boolean isStatus() {
		return status;
	}

	/*****************************************
	 * @param status the status to set
	 *****************************************/
	public void setStatus(boolean status) {
		this.status = status;
	}

	/*************************************
	 * @return the code
	 *************************************/
	public int getCode() {
		return code;
	}

	/*****************************************
	 * @param code the code to set
	 *****************************************/
	public void setCode(int code) {
		this.code = code;
	}


}
